package com.jdjc.subject.infra.basic.service;


import com.jdjc.subject.common.entity.PageResult;
import com.jdjc.subject.infra.basic.entity.SubjectInfoEs;

public interface SubjectEsService {
    /**
     * 将题目同步到es
     * @param subjectInfoEs
     * @return
     */
    boolean insert(SubjectInfoEs subjectInfoEs);

    /**
     * 分页查询es中的题目
     * @param subjectInfoEs
     * @return
     */
    PageResult<SubjectInfoEs> querySubjectList(SubjectInfoEs subjectInfoEs);

}

